<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
   <!-- ueditor旧版开始  -->
   <!--      <script type="text/javascript">
      //    window.UEDITOR_HOME_URL = "__ROOT__/Data/ueditor/";
      //    window.onload=function(){
	    	// window.UEDITOR_CONFIG.initialFrameHeight=400;
	    	// window.UEDITOR_CONFIG.initialFrameWidth=800;
	    	// window.UEDITOR_CONFIG.imageUrl ="<?php echo U(GROUP_NAME.'/Blog/Upload');?>";
	    	// window.UEDITOR_CONFIG.imagePath="__ROOT__/Upload/";
	    	// window.UEDITOR_CONFIG.savePath=[''];
	     //    var ue = UE.getEditor('content');
	     //    }

      //   </script>   --> 	   
	   <!--    <script type="text/javascript" src="__ROOT__/Data/ueditor/ueditor.config.js"> </script> 
	     <script type="text/javascript" src="__ROOT__/Data/ueditor/ueditor.all.min.js"></script>-->
    <!-- ueditor旧版结束  -->

    <!-- ueditor1.4.3开始 -->
       <script type="text/javascript">
         window.UEDITOR_HOME_URL = "__ROOT__/Data/ueditor1_4_3/";
         window.onload=function(){
	    	window.UEDITOR_CONFIG.initialFrameHeight=400;
	    	window.UEDITOR_CONFIG.initialFrameWidth=800;
	    	 window.UEDITOR_CONFIG.serverUrl ="<?php echo U(GROUP_NAME.'/Blog/Upload2');?>";
	    	
	        var ue = UE.getEditor('content');
	        }
     </script>
    <script type="text/javascript" src="__ROOT__/Data/ueditor1_4_3/ueditor.config.js"> </script> 
	<script type="text/javascript" src="__ROOT__/Data/ueditor1_4_3/ueditor.all.min.js"></script>

    <!-- ueditor1.4.3结束 -->
<head>
</head>
<body> 
	<form action="<?php echo U(GROUP_NAME.'/Blog/AddBlogRun');?>" method='post'>
	  <table class='table'>
	     <tr>
	       <th colspan='2' align='center'>添加博文:</th>
	     </tr>
	     <tr>
	        <td>博文分类:</td>
	        <td>
	           <select name="cid">
	               <option>---请选择分类---</option>
	               <?php if(is_array($cate)): foreach($cate as $key=>$v): ?><option  value="<?php echo ($v["id"]); ?>"><?php echo ($v["html"]); echo ($v["name"]); ?></option><?php endforeach; endif; ?>
	           </select> 
	        </td>
	     </tr>
	     <tr>
	        <td>博文属性:</td>
	        <td>
	          <?php if(is_array($attr)): foreach($attr as $key=>$v): echo ($v["name"]); ?><input style="margin-right:30px" type="checkbox" value="<?php echo ($v["id"]); ?>" name="aid[]"/><?php endforeach; endif; ?>
	        </td>
	     </tr>
	     <tr >
	        <td>博文标题：</td>
	        <td><input type="text" name="title"/></td>
	     </tr> 
	      <tr >
	        <td>点击次数</td>
	        <td><input type="text" name="click" value="100" /></td>
	     </tr>
	     <tr> 
	        <td valign="top">博文摘要：</td>
	        <td><input name='summary' id='summary' /></td>
	     </tr>
	     <tr> 
	        <td valign="top">博文内容：</td>
	        <td><textarea name='content' id='content' rows='20' cols='50'></textarea></td>
	     </tr>
	     <tr>
	        <td colspan='2' align='center'><input type="submit" value="提交保存"/></td>
	     </tr>
	  </table>
	  
	</form>
</body>
</html>